package org.example;

import org.example.server.RpcServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class NettyStarter implements CommandLineRunner {
    @Autowired
    private RpcServer rpcServer;

    @Override
    public void run(String... args) throws Exception {
        rpcServer.start();
    }
}
